package com.example.springboot.exception;

/**
 * Description:自定义异常
 *
 * @Author 马钰涵
 * @Create 2023/8/5 20:47
 * @Version 1.0
 */
public class ServiceException extends RuntimeException {

    private String code;

    public String getCode() {
        return code;
    }

    public ServiceException(String message,Throwable cause) {
        super(message, cause);
    }
    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String code, String message) {
        super(message);
        this.code = code;
    }
}
